set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")  # C++ 编译器选项
set(CMAKE_CXX_FLAGS   "-g")       # C 编译器选项
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0")

add_executable(provider userservice.cc ../../src/Rpc/RpcApplication.cc ../../src/Rpc/RpcConfig.cc ../../src/Rpc/RpcHeader.pb.cc ../../src/Rpc/RpcProvider.cc ../../src/mainServer/mainServer.cc ../../src/utils/ipAddressPort.cc  ../user.pb.cc ../../src/utils/tcpServer.cc ../../src/Logger/Logger.cc ../../src/thread/thread.cc  ../../src/reactor/reactor.cc ../../src/threadPool/threadPool.cc ../../src/zookeeper/zookeeperutil.cc )
target_link_libraries(provider muduo_net muduo_base pthread protobuf event hiredis mysqlclient zookeeper_mt)